package adv7;

import java.io.*;

public class ByteTong {

	public static void main(String[] args) {
		try {
			File file = new File("e:/Temp/java63.txt");
			FileInputStream fis = new FileInputStream(file);
			ByteArrayOutputStream baos = new ByteArrayOutputStream();
			int len;
			while ((len = fis.read()) != -1) {
				baos.write(len);
			}
			// byte[]br=baos.toByteArray();

			String messages = baos.toString();
			System.out.println(messages);
			fis.close();
			baos.close();
		} catch (FileNotFoundException e) {

			e.printStackTrace();
		} catch (IOException e) {

			e.printStackTrace();
		}
	}

}
